home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / QuickDraw™ GX / Programming Stuff / Sample Code / Printing Samples / Printer Drivers… / HPXL / HPXL.make < prev    next >
Encoding:
Text File  |  1995-04-10  |  4.0 KB  |  118 lines  |  [TEXT/MPS ]

  1. #==============================================================================================
  2. #
  3. #    Make FILE:        HPXL.make
  4. #
  5. #    VERSION:        1.0
  6. #
  7. #    COPYRIGHT:        (c) 1992-94 Apple Computer Inc.
  8. #                        All rights reserved.
  9. #
  10. #    PURPOSE:        This file contains the build commands for the HPXL driver.
  11. #
  12. #    HISTORY:        Date            By        Description
  13. #                    -----            ---        --------------------------------------
  14. #                    8/28/94            dmh        Finalized for SDK.
  15. #                   12/18/93            dmh        Updated for the b3 seed.
  16. #                    9/13/93            dmh        Updated for the b2 seed.
  17. #                    1/20/92            Harita    Initial release
  18. #
  19. #==============================================================================================
  20.  
  21. #========== Directories Containing Source and Object Files ==========
  22.  
  23. ObjDir                    =    :Objects:
  24. SrcDir                    =    
  25. DestDir                    =    
  26.  
  27. #========== Compiler Options ==========
  28.  
  29. AsmOptions                =    -case obj
  30. RezOptions                =    -rd -i {RIncludes} -d SystemSevenOrLater=1
  31. CompileOptions            =    -d applec -b2 -i {CIncludes}
  32. LinkOptions                =    -ra =resSysHeap,resPurgeable
  33.  
  34. DriverName         =  HPXL
  35. DriverType         = 'pdvr'
  36. DriverCreator     = 'scXL'
  37.  
  38. #========== Files to Link Seg #1 With ==========
  39.  
  40. CSeg1Objs    =    "{ObjDir}MessageJumpTable.a.o"        ∂
  41.                 "{ObjDir}MessageRoutines.c.o"        ∂
  42.                 "{ObjDir}PackageRoutines.c.o"        
  43.  
  44. #========== Link and Rez Build Statements ==========
  45.  
  46. "{DestDir}{DriverName}"    ƒƒ    {CSeg1Objs}                             ∂
  47.                     "{SrcDir}{DriverName}.make"                    ∂
  48.                     "{SrcDir}Resources.r"                    
  49.         Echo "Linking {DriverName} Driver"
  50.         Link  {LinkOptions} ∂
  51.               -t {DriverType}        ∂
  52.               -c {DriverCreator}        ∂
  53.               -rt {DriverType}=0    ∂
  54.               -d    ∂
  55.               -m SD_JumpTable    ∂
  56.               -sg "{DriverName}" ∂
  57.               {CSeg1Objs}    ∂
  58.               "{Libraries}Interface.o"    ∂
  59.               "{CLibraries}StdCLib.o"    ∂
  60.               "{Libraries}Runtime.o"    ∂
  61.               -o "{DestDir}{DriverName}" 
  62.         SetFile -a Bi "{DestDir}{DriverName}"
  63.         Echo "Rezzing {DriverName} Driver"
  64.         Rez {RezOptions} -c {DriverCreator} -t {DriverType} -ov -s {ObjDir} -s {RIncludes} -o "{DestDir}{DriverName}" "{SrcDir}Resources.r" -append
  65.         SetFile -a Bi -c {DriverCreator} -t {DriverType} "{DestDir}{DriverName}"
  66.  
  67. "{DestDir}{DriverName}" ƒƒ {SrcDir}ChooserSupport.r
  68.     Echo "{DriverName}: Rezzing Chooser resources"
  69.     Rez -rd -i {RIncludes} -c {DriverCreator} -t {DriverType} -ov -append  -s {ObjDir} -s {RIncludes} -o "{DestDir}{DriverName}" {SrcDir}ChooserSupport.r 
  70.  
  71. "{DestDir}{DriverName}" ƒƒ                                 ∂
  72.     {ObjDir}ChooserSupport.a.o                    ∂
  73.     {ObjDir}ChooserSupport.c.o                    
  74.     Echo "{DriverName}: Linking PACK"
  75.     Link {ObjDir}ChooserSupport.a.o                ∂
  76.         {ObjDir}ChooserSupport.c.o                ∂
  77.         ∂
  78.         -rt PACK=-4096                            ∂
  79.         -sg PrintingPACK                        ∂
  80.         -m EntryPoint                            ∂
  81.         ∂
  82.         -o "{DestDir}{DriverName}"
  83.  
  84. "{DestDir}{DriverName}"    ƒƒ {ObjDir}ChooserSupport.c.o
  85.     Echo "{DriverName}: Linking LDEF"
  86.     Link  -w -rt LDEF=-4096 -m LDEF -sg LDEF -o "{DestDir}{DriverName}" {ObjDir}ChooserSupport.c.o
  87.  
  88. #========== Assemble Build Statements - MessageJumpTable.a ==========
  89.  
  90. "{ObjDir}MessageJumpTable.a.o"    ƒ     "{SrcDir}MessageJumpTable.a" 
  91.     Echo "Assembling MessageJumpTable.a"
  92.     Asm {SrcDir}MessageJumpTable.a {AsmOptions} -o {ObjDir}MessageJumpTable.a.o
  93.  
  94. #========== Compile Build Statements - MessageRoutines.c ==========
  95.  
  96. "{ObjDir}MessageRoutines.c.o"    ƒ    "{SrcDir}MessageRoutines.c" 
  97.     Echo "Compiling MessageRoutines.c"
  98.     C "{SrcDir}MessageRoutines.c" -o "{ObjDir}MessageRoutines.c.o"  {CompileOptions}
  99.  
  100. #========== Compile Build Statements - PackageRoutines.c ==========
  101.  
  102. "{ObjDir}PackageRoutines.c.o"    ƒ    "{SrcDir}PackageRoutines.c" 
  103.     Echo "Compiling PackageRoutines.c"
  104.     C "{SrcDir}PackageRoutines.c" -o "{ObjDir}PackageRoutines.c.o"  {CompileOptions}
  105.  
  106. #========== Assemble Build Statements - ChooserSupport.a ==========
  107.  
  108. "{ObjDir}ChooserSupport.a.o"    ƒ     "{SrcDir}ChooserSupport.a" 
  109.     Echo "Assembling ChooserSupport.a"
  110.     Asm {SrcDir}ChooserSupport.a {AsmOptions} -o {ObjDir}ChooserSupport.a.o
  111.     
  112. #========== Compile Build Statements - ChooserSupport.c ==========
  113.  
  114. "{ObjDir}ChooserSupport.c.o"    ƒ    "{SrcDir}ChooserSupport.c" 
  115.     Echo "Compiling ChooserSupport.c"
  116.     C "{SrcDir}ChooserSupport.c" -o "{ObjDir}ChooserSupport.c.o"  {CompileOptions}
  117.     
  118.